package cn.leedsoft.and.crimeintent.manager.run_tracker;

import android.content.Context;
import cn.leedsoft.and.crimeintent.common.DataLoader;
import cn.leedsoft.and.crimeintent.model.run_tracker.Run;

/**
 * Created by leeds on 2016/9/7 18:28.
 */
public class RunLoader extends DataLoader<Run>{
    private long mRunId;
    public RunLoader(Context context, long runId) {
        super(context);
        mRunId = runId;
    }

    @Override
    public Run loadInBackground() {
        return RunManager.getInstance(getContext()).queryRun(mRunId);
    }
}
